Skip to content

Method: ArchiveDirectory(String, int)

1: package archive;
2:
3: import java.io.FileNotFoundException;
4: import java.io.IOException;
5:
6: /**
7: * Represents a directory, which should be created in the archive.
8: */
9: public class ArchiveDirectory extends AccessibleAbstractArchiveComponent {
10:
11:         /**
12:          * Constructor for ArchiveDirectoroy, which sets the name and the AccessMode.
13:          *
14:          * @param name
15:          * the full qualified name of the directory. Starting from the archive-root
16:          * @param mode
17:          * the access permissions
18:          */
19:         public ArchiveDirectory(final String name, final int mode) {
20:                 super(name, mode);
21:         }
22:
23:         @Override
24:         public void accept(final ArchiveComponentVisitor visitor)
25:                         throws FileNotFoundException, IOException {
26:                 visitor.handleArchiveDirectory(this);
27:         }
28: }